<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="es"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="es"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="es"> <![endif]-->
<!--[if gt IE 8]><!-->


<html class="no-js" lang="es">
<!--<![endif]-->


<head>
    <!--Site charset-->
    <meta charset="utf-8">
    <!--Site title-->
    {{ sonata_seo_title() }}
    <!--Meta-->

    {{ sonata_seo_metadatas() }}


    <!--Set the viewport width to device width for mobile-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    {% block stylesheets %}{% endblock %}

    {% stylesheets 'bundles/amistate/css/*' filter='cssrewrite,?yui_css' %}
        <link rel="stylesheet" type="text/css" media="screen" href="{{ asset_url }}" />
    {% endstylesheets %}

    <!--Google Fonts-->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic,700,700italic' rel='stylesheet' type='text/css'>
    <link href='http://fonts.googleapis.com/css?family=Yesteryear' rel='stylesheet' type='text/css'>
    <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">


    <!--[if IE 7]>
        <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome-ie7.min.css" rel="stylesheet">
    <![endif]-->

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script>

    <!--Favicons-->
    {% image '@AmistateBundle/Resources/public/images/icons/favicon.ico' %}
        <link rel="shortcut icon" href="{{ asset_url }}">
    {% endimage %}

    {% javascripts 'bundles/amistate/scripts/modernizr.foundation.js' filter='?yui_js' %}
        <script src="{{ asset_url }}" type="text/javascript"></script>
    {% endjavascripts %}

    {% block header_javascripts %}

    {% endblock %}

</head>
<body>

    <div class="{% block classPage %}inner page wide-style{% endblock %}">
        {% block headerContent %} {% endblock %}

        <section>
            <div id="breadcrumbs-wrapp">
                {% block breadcrumbs %} {% endblock %}
            </div>
        </section>
			
        <section>
            <div id="search-bar">
                {% block filters %} {% endblock %}
            </div>
        </section>
			
        <section>
            <div id="{% block page_id %}main{% endblock %}">
                {% block body %} {% endblock %}
            </div>
        </section>

        {% block footer %} {% endblock %}
			
		{{ facebook_initialize({'xfbml': true}) }}
		{{ nelmio_js_error_logger() }}
			
    </div>

    {% block javascripts %}
        {% javascripts 'bundles/amistate/js/*' filter='?yui_js' %}
            <script src="{{ asset_url }}" type="text/javascript"></script>
        {% endjavascripts %}
        {% javascripts 'bundles/fosjsrouting/js/router.js' filter='?yui_js' %}
            <script src="{{ asset_url }}" type="text/javascript"></script>
        {% endjavascripts %}
			<script src="{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}"></script>
    {% endblock %}


</body>
</html>